<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Function - ujs</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title="ujs"></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: 0.0.1</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/AutoCompleteBox.html">AutoCompleteBox</a></li>
            
                <li><a href="../classes/Function.html">Function</a></li>
            
                <li><a href="../classes/Grouper.html">Grouper</a></li>
            
                <li><a href="../classes/ImagePreviewDialog.html">ImagePreviewDialog</a></li>
            
                <li><a href="../classes/String.html">String</a></li>
            
                <li><a href="../classes/StringList.html">StringList</a></li>
            
                <li><a href="../classes/TabControl.html">TabControl</a></li>
            
                <li><a href="../classes/WebNotification
浏览器通知管理类..html">WebNotification
浏览器通知管理类.</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/JavaScript core extension.html">JavaScript core extension</a></li>
            
                <li><a href="../modules/jquery base plugins.html">jquery base plugins</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>Function Class</h1>
<div class="box meta">
    

    

    
        <div class="foundat">
            Defined in: <a href="../files/.._js_jsExt_Function.js.html#l2"><code>..\js\jsExt\Function.js:2</code></a>
        </div>
    

    
        
            Module: <a href="../modules/JavaScript core extension.html">JavaScript core extension</a>
        
    

    
</div>



<div class="box intro">
    <p>JavaScript原生Function对象扩展。</p>

</div>



<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                        
                            <li class="index-item method">
                                <a href="#method_add">add</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_add">add</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_addAt">addAt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_clear">clear</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_clone">clone</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_contains">contains</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_containsAtLeastOne">containsAtLeastOne</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_dateDiff">dateDiff</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_detectInstance">detectInstance</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_diff">diff</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_disjoint">disjoint</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_every">every</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_extend">extend</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_filter">filter</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_first">first</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_forEach">forEach</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_format">format</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_from">from</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getAge">getAge</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getDaysInMonth">getDaysInMonth</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getISODay">getISODay</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getItemRandomly">getItemRandomly</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getMaxItem">getMaxItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getMinItem">getMinItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getMonthName">getMonthName</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getTimeTooltip">getTimeTooltip</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getWeekName">getWeekName</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_hasFuzzyClass">hasFuzzyClass</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_hasOnlyClass.">hasOnlyClass.</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_hideOnClickDoc">hideOnClickDoc</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_indexOf">indexOf</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_intersect">intersect</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isArray">isArray</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isLeapYear">isLeapYear</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_last">last</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_lastIndexOf">lastIndexOf</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_linear">linear</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_map">map</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_merge">merge</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_middle">middle</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_move">move</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_nowDateObj">nowDateObj</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_off">off</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_on">on</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_pad">pad</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_parseStrDate">parseStrDate</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_remove">remove</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeAt">removeAt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_scrollToTop">scrollToTop</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_shrink">shrink</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_shuffle">shuffle</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_some">some</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_sortAsc">sortAsc</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_sortDesc">sortDesc</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_subtract.">subtract.</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_swapTwoItems">swapTwoItems</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_tick">tick</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toArray">toArray</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toString">toString</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_unique">unique</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties">
                        
                            <li class="index-item property">
                                <a href="#property_emptyDataAdapter">emptyDataAdapter</a>

                                
                                
                            </li>
                        
                            <li class="index-item property">
                                <a href="#property_originalStartDate">originalStartDate</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method_add" class="method item">
    <h3 class="name"><code>add</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l87"><code>..\js\jsExt\Date.js:87</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>时间增量.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_add" class="method item">
    <h3 class="name"><code>add</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>obj</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l62"><code>..\js\jsExt\Array.js:62</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>添加一个元素， 若已存在，则不添加。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">obj</code>
                        <span class="type">Object | Array</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_addAt" class="method item">
    <h3 class="name"><code>addAt</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>index</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>obj1,</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l94"><code>..\js\jsExt\Array.js:94</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>在数组中的指定位置添加元素.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">index</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>要插入的位置.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">obj1,</code>
                        <span class="type">Mixed</span>
                    

                    

                    <div class="param-description">
                        <p>obj2, ..., objn  要添加的数据项.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>修改后的原数组.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_clear" class="method item">
    <h3 class="name"><code>clear</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l466"><code>..\js\jsExt\Array.js:466</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>清空数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_clone" class="method item">
    <h3 class="name"><code>clone</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l294"><code>..\js\jsExt\Array.js:294</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>克隆数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_contains" class="method item">
    <h3 class="name"><code>contains</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l6"><code>..\js\jsExt\Array.js:6</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>是否包含某元素，或一系列元素。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_containsAtLeastOne" class="method item">
    <h3 class="name"><code>containsAtLeastOne</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l32"><code>..\js\jsExt\Array.js:32</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数组中是否至少包含一个指定的元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_dateDiff" class="method item">
    <h3 class="name"><code>dateDiff</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l265"><code>..\js\jsExt\Date.js:265</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取两个时间差.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_detectInstance" class="method item">
    <h3 class="name"><code>detectInstance</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>obj</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Function.js.html#l79"><code>..\js\jsExt\Function.js:79</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>检测指定的对象是否是当前构造函数的实例。
TODO 测试</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">obj</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_diff" class="method item">
    <h3 class="name"><code>diff</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>arr0</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l529"><code>..\js\jsExt\Array.js:529</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>The difference is computed as the elements which are in the calling array but not in the arrays passed as arguments.
Duplicates are removed from the result.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">arr0</code>
                        <span class="type">Array</span>
                    

                    

                    <div class="param-description">
                        <ul>
<li>arrN  ([ Array a0 ... an ])</li>
</ul>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>A new array with those elements which are not in arrays a0 trough an.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_disjoint" class="method item">
    <h3 class="name"><code>disjoint</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>UNKNOWN</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l556"><code>..\js\jsExt\Array.js:556</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Check whether two arrays are disjoint</p>
<p>This functions checks whether two arrays are disjoint.
If no element is in more than one array then the arrays are considered to be disjoint.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">UNKNOWN</code>
                        <span class="type">Array</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_every" class="method item">
    <h3 class="name"><code>every</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l355"><code>..\js\jsExt\Array.js:355</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数组中是否所有元素均满足条件.
fun* ( Object, Number, Array ) : Boolean  --- callback, 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_extend" class="method item">
    <h3 class="name"><code>extend</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>superFun</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Function.js.html#l55"><code>..\js\jsExt\Function.js:55</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>继承.
//TODO 重写.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">superFun</code>
                        <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>
                    

                    

                    <div class="param-description">
                        <p>父类.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>:
                    
                    <p>子类.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_filter" class="method item">
    <h3 class="name"><code>filter</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l370"><code>..\js\jsExt\Array.js:370</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Creates a new array with all elements that meet the specified criteria.
fun* ( Object, Number, Array ) : Boolean  --- callback, 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_first" class="method item">
    <h3 class="name"><code>first</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l268"><code>..\js\jsExt\Array.js:268</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组第一个元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_forEach" class="method item">
    <h3 class="name"><code>forEach</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l396"><code>..\js\jsExt\Array.js:396</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Executes the specified function once for each element in an array.
fun* ( Object, Number, Array ), 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_format" class="method item">
    <h3 class="name"><code>format</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l35"><code>..\js\jsExt\Date.js:35</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>日期格式化.如:
alert(new Date().format(&quot;yyyy-MM-dd&quot;));
alert(new Date(&quot;january 12 2008 11:12:30&quot;).format(&quot;yyyy-MM-dd hh:mm:ss&quot;));</p>

    </div>

    

    

    
</div>

                
                    <div id="method_from" class="method item">
    <h3 class="name"><code>from</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l206"><code>..\js\jsExt\Date.js:206</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>构建Date对象.
[Number milliseconds,]
[String dateString,]
[Object year, month, day,], [Object hour, minute, second, ms]</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getAge" class="method item">
    <h3 class="name"><code>getAge</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l229"><code>..\js\jsExt\Date.js:229</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取birthDate关联的年龄.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getDaysInMonth" class="method item">
    <h3 class="name"><code>getDaysInMonth</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l183"><code>..\js\jsExt\Date.js:183</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return the number of days in the month</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getISODay" class="method item">
    <h3 class="name"><code>getISODay</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l165"><code>..\js\jsExt\Date.js:165</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return the ISO day number for a date</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getItemRandomly" class="method item">
    <h3 class="name"><code>getItemRandomly</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l139"><code>..\js\jsExt\Array.js:139</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>随机获取数组中的一个元素.
Math.random() -&gt; 取[0,1)随机数.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getMaxItem" class="method item">
    <h3 class="name"><code>getMaxItem</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l475"><code>..\js\jsExt\Array.js:475</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组中最大的数组项.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getMinItem" class="method item">
    <h3 class="name"><code>getMinItem</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l483"><code>..\js\jsExt\Array.js:483</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组中最小的数组项.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getMonthName" class="method item">
    <h3 class="name"><code>getMonthName</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l3"><code>..\js\jsExt\Date.js:3</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取  Month Name.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getTimeTooltip" class="method item">
    <h3 class="name"><code>getTimeTooltip</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l127"><code>..\js\jsExt\Date.js:127</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间的时间段易读提示，如：
1、&lt; 60s, 显示为     “刚刚”
2、&gt;= 1min &amp;&amp; &lt; 60 min, 显示与当前时间差      “XX分钟前”
3、&gt;= 60min &amp;&amp; &lt; 1day, 显示与当前时间差       “今天 XX:XX”
4、&gt;= 1day &amp;&amp; &lt; 1year, 显示日期       “XX月XX日 XX:XX”
5、&gt;= 1year, 显示具体日期       “XXXX年XX月XX日 XX:XX”</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getWeekName" class="method item">
    <h3 class="name"><code>getWeekName</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l20"><code>..\js\jsExt\Date.js:20</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取 Week Name.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_hasFuzzyClass" class="method item">
    <h3 class="name"><code>hasFuzzyClass</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jqueryPlugins_misc_jquery.style.js.html#l156"><code>..\js\jqueryPlugins\misc\jquery.style.js:156</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断元素是否包含一个正则表达式指定的类.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_hasOnlyClass." class="method item">
    <h3 class="name"><code>hasOnlyClass.</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>className</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jqueryPlugins_misc_jquery.style.js.html#l139"><code>..\js\jqueryPlugins\misc\jquery.style.js:139</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断元素是否仅应用一个class.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">className</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>: CSS类.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_hideOnClickDoc" class="method item">
    <h3 class="name"><code>hideOnClickDoc</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jqueryPlugins_misc_jquery.mouse.js.html#l2"><code>..\js\jqueryPlugins\misc\jquery.mouse.js:2</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>隐藏元素,当鼠标点击其它任意地方时.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_indexOf" class="method item">
    <h3 class="name"><code>indexOf</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l411"><code>..\js\jsExt\Array.js:411</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Returns the first index number at which the specified element can be found in the array. 
Returns -1 if the element is not present.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_intersect" class="method item">
    <h3 class="name"><code>intersect</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l239"><code>..\js\jsExt\Array.js:239</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>取两个或多个Array的交集.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isArray" class="method item">
    <h3 class="name"><code>isArray</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l602"><code>..\js\jsExt\Array.js:602</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断指定的参数是否是一个数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isLeapYear" class="method item">
    <h3 class="name"><code>isLeapYear</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l175"><code>..\js\jsExt\Date.js:175</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Retuns true if year is a leap year; otherwise false</p>

    </div>

    

    

    
</div>

                
                    <div id="method_last" class="method item">
    <h3 class="name"><code>last</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l276"><code>..\js\jsExt\Array.js:276</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组的最后一个.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_lastIndexOf" class="method item">
    <h3 class="name"><code>lastIndexOf</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l427"><code>..\js\jsExt\Array.js:427</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Searches an array backwards starting from fromIndex and returns the last index number at which the specified element can be found in the array. 
Returns -1 if the element is not present.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_linear" class="method item">
    <h3 class="name"><code>linear</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l322"><code>..\js\jsExt\Array.js:322</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将二维数组转化成一维数组.
如: [[1,2,3],[4,5,6,[7,8]]].linear()   =&gt;   [1,2,3,4,5,6,[7,8]]</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_map" class="method item">
    <h3 class="name"><code>map</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l443"><code>..\js\jsExt\Array.js:443</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Creates a new array with the results of calling a provided function on every element in this array.
fun* ( Object, Number, Array ), 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_merge" class="method item">
    <h3 class="name"><code>merge</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l589"><code>..\js\jsExt\Array.js:589</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>合并多个数组为一个数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_middle" class="method item">
    <h3 class="name"><code>middle</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l284"><code>..\js\jsExt\Array.js:284</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组中间的一个.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_move" class="method item">
    <h3 class="name"><code>move</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l112"><code>..\js\jsExt\Array.js:112</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>移动数组中的元素到指定的位置.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_nowDateObj" class="method item">
    <h3 class="name"><code>nowDateObj</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Date</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l256"><code>..\js\jsExt\Date.js:256</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间对象.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Date</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_off" class="method item">
    <h3 class="name"><code>off</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>handler</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_event_Observable.js.html#l44"><code>..\js\jsExt\event\Observable.js:44</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>注销事件.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">handler</code>
                        <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>this</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_on" class="method item">
    <h3 class="name"><code>on</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>type</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>handler</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_event_Observable.js.html#l8"><code>..\js\jsExt\event\Observable.js:8</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>注册事件.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">type</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a> | Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">handler</code>
                        <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                    <p>this</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_pad" class="method item">
    <h3 class="name"><code>pad</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>size</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>val</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l491"><code>..\js\jsExt\Array.js:491</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Pad an array to a given size with a given value.
This function will return a copy of the array padded to length size with initial value.</p>
<p>If size is less than or equal to the length of the array a copy of the array is returned.
If size is negative the array is padded from the left.
If positive it is padded from the right.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">size</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>数组容量.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">val</code>
                        <span class="type">Mixed</span>
                    

                    

                    <div class="param-description">
                        <p>数组填充值.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>新数组实例.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_parseStrDate" class="method item">
    <h3 class="name"><code>parseStrDate</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Date</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l307"><code>..\js\jsExt\Date.js:307</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>解析字符串格式的时间，如：13-Nov-2013。 
//TODO 日期格式解析有待完善.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Date</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_remove" class="method item">
    <h3 class="name"><code>remove</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l148"><code>..\js\jsExt\Array.js:148</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>删除参数中指定的元素，参数格式如: (arr, obj1, obj2, obj3, ... )</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_removeAt" class="method item">
    <h3 class="name"><code>removeAt</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l170"><code>..\js\jsExt\Array.js:170</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>删除指定位置的元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>: 被删除的元素.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_scrollToTop" class="method item">
    <h3 class="name"><code>scrollToTop</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jqueryPlugins_misc_jquery.scroll.js.html#l2"><code>..\js\jqueryPlugins\misc\jquery.scroll.js:2</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>滚动到顶部.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_shrink" class="method item">
    <h3 class="name"><code>shrink</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l307"><code>..\js\jsExt\Array.js:307</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>去除数组中的冗余空元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_shuffle" class="method item">
    <h3 class="name"><code>shuffle</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l457"><code>..\js\jsExt\Array.js:457</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将数组内的元素次序打乱(洗牌).</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_some" class="method item">
    <h3 class="name"><code>some</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l331"><code>..\js\jsExt\Array.js:331</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数组中是否至少有一个元素满足条件.
fun* ( Object, Number, Array ) : Boolean  --- callback, 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
        <div class="example">
            <h4>Example:</h4>

            <div class="example-content">
                <pre class="code prettyprint"><code> function isBigEnough(element, index, array) {
     return (element &gt;= 10);
 }
 var passed = [2, 5, 8, 1, 4].some(isBigEnough);
 // passed is false
 var passed = [12, 5, 8, 1, 44].some(isBigEnough);
 // passed is true</code></pre>

            </div>
        </div>
    
</div>

                
                    <div id="method_sortAsc" class="method item">
    <h3 class="name"><code>sortAsc</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l203"><code>..\js\jsExt\Array.js:203</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>升序排列数组(适用Number与String类型的数组).</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_sortDesc" class="method item">
    <h3 class="name"><code>sortDesc</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l213"><code>..\js\jsExt\Array.js:213</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>降序排列数组(适用Number与String类型的数组).</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_subtract." class="method item">
    <h3 class="name"><code>subtract.</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l515"><code>..\js\jsExt\Array.js:515</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前数组针对指定数组的差集.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_swapTwoItems" class="method item">
    <h3 class="name"><code>swapTwoItems</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l45"><code>..\js\jsExt\Array.js:45</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>交换数组中两个元素的位置.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_tick" class="method item">
    <h3 class="name"><code>tick</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l247"><code>..\js\jsExt\Date.js:247</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间刻度.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toArray" class="method item">
    <h3 class="name"><code>toArray</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>list</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l611"><code>..\js\jsExt\Array.js:611</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将类数组对象转化为数组.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">list</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toString" class="method item">
    <h3 class="name"><code>toString</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>sep</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l578"><code>..\js\jsExt\Array.js:578</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>重写toString方法，去掉‘逗号’字符串连接符。
默认toString方法将数组中的所有项转化成字符串，而后以‘逗号’分隔连接。
大多数时，我们不需要这个‘逗号’连接符。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">sep</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>字符串连接符，默认空字符串。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_unique" class="method item">
    <h3 class="name"><code>unique</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Array.js.html#l223"><code>..\js\jsExt\Array.js:223</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>去除重复元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
            </div>
        

        
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                
                    <div id="property_emptyDataAdapter" class="property item">
    <h3 class="name"><code>emptyDataAdapter</code></h3>
    <span class="type">DataAdapter</span>

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_data_DataAdapter.js.html#l18"><code>..\js\jsExt\data\DataAdapter.js:18</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>空数据适配器，不干任何事。</p>

    </div>

    

    

    
</div>

                
                    <div id="property_originalStartDate" class="property item">
    <h3 class="name"><code>originalStartDate</code></h3>
    <span class="type">Date</span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_jsExt_Date.js.html#l196"><code>..\js\jsExt\Date.js:196</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>时间计时的初始时间.
Thu Jan 01 1970 08:00:00 GMT+0800 (China Standard Time)</p>

    </div>

    
        <p><strong>Default:</strong> &quot;new Date(0)&quot;</p>
    

    

    
</div>

                
            </div>
        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
